import java.awt.print.Printable;


public class medidot_driver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		series(1000);
		System.out.println("---------------------------------------------------------");
		series(2000);
		System.out.println("---------------------------------------------------------");
		series(3000);
	}

	private static void series(int m) {
		System.out.println("m = "+m);
		System.out.println();
		BinomialHeap h=new BinomialHeap();
		for (int i=0;i<3*m/4;i++){
			h.insert(1);
		}
		System.out.println("trees Ranks after 3/4*m actions:");
		printArray(h.treesRanks());
		System.out.println();
		
		h.deleteMin();
		
		System.out.println("trees Ranks after 3/4*m + 1 actions:");
		printArray(h.treesRanks());
		System.out.println();
	}
	
	private static void printArray(int[] arr){
		for (int i : arr){
			System.out.print(i + "\t");
		}
		System.out.println();
	}
	

}
